(function(){
var db = require("../../core/db/index");
var role = require("./role");
var ResponObj = require("../_include/ResponObj");
module.exports = {
	prefix:"/db",
	get:{
		"/refreshIndex":function *(){
			if(!role.resCheckRole("admin",this)){
				return
			}

			db.refreshIndex();
			this.body = ResponObj("json","缓存更新成功");
		}
	}
}
}());